/*
 * Copyright (c) 2022.版权所有高金磊
 */

package 领扣算法.A简单题.统计包含给定前缀的字符串;

public class Main {
    public int prefixCount(String[] words, String pref) {
        int res=0;
        for (String word : words) {
            if (word.startsWith(pref))
                res++;
        }
        return res;
    }
}
